#include "qstylesheeteditor.h"

#include "qstylesheetdialog.h"

#include "../../../shared/property/qabstractproperty.h"
#include "../../../shared/qpropertyfactory.h"

QStyleSheetEditor::QStyleSheetEditor(QAbstractProperty *property,QUndoStack* stack, QWidget *parent):
    QButtonCommonEditor(property,stack,parent),
    m_undo_stack(stack)
{
}

void QStyleSheetEditor::btn_clicked()
{
    QStyleSheetDialog dlg(m_property,m_undo_stack,this);

    dlg.exec();
}

qRegisterPropertyEditor(StyleSheet,QStyleSheetEditor)
